Page({
  data: {
    currentIndex: 0,
    agreeChecked: false,
  },
  handlePackageClick(e) {
    this.setData({ currentIndex: e.currentTarget.dataset.index })
  },
  handleAgreeCheckedChange(e) {
    this.setData({ agreeChecked: e.detail })
  },
  // 打开明细
  handleCostDetailClick() {
    this.costDetailDialog.show({ showOpenDescType: this.data.showOpenDescType })
  },
  // 支付方式点击事件
  handlePayTypeClick() {
    this.payTypeDialog.show()
  },
  handlePayTypeChange(event) {
    console.log(event.detail);
  },
  // 确认开台
  handlePayDescConfirm() {
    console.log('确认开台');
  },
  onLoad(options) {
    
  },
  onReady() {
    this.payTypeDialog = this.selectComponent('#dialog-paytype2')
    this.costDetailDialog = this.selectComponent('#dialog-cost-detail2')
  },
})